<template>
    <div class="son">
        <h1>Son组件</h1>
        <input type="text" v-model="son_message">
        <h3>{{son_message}}</h3>
        <button @click="son_message='konono'">修改</button>
    </div>
</template>

<script>
    export default {
        name: "Son",
        props:['message'],
        data(){
            return{
                son_message:this.message
            }
        }
    }
</script>

<style scoped>
    .son{
        background-color: yellow;
    }
</style>